package com.myfojing.foshuoliaozhibingjing;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class NetworkChangeReceiver extends BroadcastReceiver {
    UpdateNetworkStatusListenner updateStatus;

    @Override
    public void onReceive(Context context, Intent intent) {

        int status = NetworkUtil.getConnectivityStatus(context);
        updateStatus.updateNetworkStatus(status);
    }

    /* - init set - */
    public void setOnUpdateNetorkStatusListenner(UpdateNetworkStatusListenner updateStatus) {
        this.updateStatus = updateStatus;
    }

    //
}
